Jeff,<div>The dialogs are destroyed automatically upon failure. You don&#39;t need to unset the dialog manually unless there is a reason the dialog doesn&#39;t fit the profile anymore..</div><div><br></div><div>-Brett</div>
<div><br></div><div><div><div class="gmail_quote">On Sun, Mar 8, 2009 at 2:09 PM, Jeff Pyle <span dir="ltr">&lt;<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I&#39;m configuring Opensips&#39; dialog module to keep count of the number of calls<br>
I have on each outbound PSTN carrier.  Here&#39;s my thinking:<br>
<br>
In request route:<br>
- create_dialog() on new INVITE<br>
- select carrier<br>
- set_dlg_profile() to assign to proper profile with this carrier&#39;s value<br>
<br>
In failure route:<br>
- unset_dlg_profile() to remove from profile, since it failed<br>
- send to original request route to select next carrier, assign profile, etc<br>
<br>
When I run this, the first set_dlg_profile() works properly, but the<br>
unset_dlg_profile() in the failure route logs:<br>
<br>
 ERROR:dialog:unset_dlg_profile: dialog was not yet created - script error<br>
 ERROR:dialog:w_unset_dlg_profile: failed to unset profile<br>
<br>
All subsequent set/unset_dlg_profile give the same error.  Does the dialog<br>
somehow get destroyed when the failure_route is hit?  Is it necessary to<br>
create_dialog() each time the failure_route is hit by sending it back around<br>
to a request route?<br>
<br>
<br>
Thanks,<br>
Jeff<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>