>-----Original Message-----
>From: ext Jerry Richards [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, July 02, 2008 5:33 PM
>To: Zabaluev Mikhail (Nokia-D/Helsinki); 
>sofia-sip-devel@lists.sourceforge.net
>Subject: RE: [Sofia-sip-devel] Setting NUTAG_PROXY()
>
>Okay.  Since the user may specify a URL that doesn't begin 
>with "sip:", I
>implemented it in the following way and it works:
>
>    // proxy is hard-coded here as an example
>    char proxy[URI_LENGTH] = 
>{"jerryr-xppro.greyhawk.tonecommander.com");
>    url_t *obUrl = url_format(appl->home, "%s", proxy);

Simplified that for you:

url_t *obUrl = url_make(appl->home, proxy);

Still, if the user is able to enter "host:5060", you're back to the original 
problem, so better check the input string for colons.

HTH,
  Mikhail


>Try "sip:jerryr-xppro.greyhawk.tonecommander.com:5060". The 
>tag expects an
>URI.
>
>Best regards,
>  Mikhail
>
>>-----Original Message-----
>>From: Jerry Richards [mailto:[EMAIL PROTECTED]
>>Sent: Monday, June 30, 2008 12:21 PM
>>To: 'sofia-sip-devel@lists.sourceforge.net'
>>Subject: Setting NUTAG_PROXY()
>>
>>Hello All,
>>
>>Why does the sofia-sip stack reply with event "900 Error setting NTA 
>>parameters" when I specify a port # in the NUTAG_PROXY() parameter 
>>string, as shown below:
>>
>>Url_string_t outbound_proxy;
>>strcpy(outbound_proxy, 
>"jerryr-xppro.greyhawk.tonecommander.com:5060");
>>nua_set_params(nua, NUTAG_PROXY(&outbound_proxy), TAG_END());
>>
>>If I remove the ":5060" on the end, then it does not get an error.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to