[Freeswitch-users] how multiple sip profiles ?

Lee JJ jengjr at gmail.com
Tue Aug 12 00:22:13 PDT 2008


Hello :

Is there anyone tested multiple sip profiles ?

>From the FAQ:
>Q: How do I assign endpoints to contexts with different sets of extensions
>Here are the different possible approaches:
>Use 1 profile per context you want to route to (each one needs a distinct
>ip:port)

So I duplicate the sip profiles, internal , nat , external just give them
another name and different ip to use .

freeswitch at localhost> sofia status
API CALL [sofia(status)] output:
                     Name          Type
Data      State
=================================================================================================
                     nat2       profile   sip:mod_sofia at 210.24y.y.y:5070
RUNNING (0)
                      nat       profile   sip:mod_sofia at 210.24x.x.x:5070
RUNNING (0)
                 internal       profile   sip:mod_sofia at 210.24x.x.x:5060
RUNNING (0)
                  outbnd2         alias
extern2      ALIASED
                 outbound         alias
external      ALIASED
           210.24x.x.x         alias                             inter2
ALIASED
                  extern2       profile   sip:mod_sofia at 210.24y.y.y:5080
RUNNING (0)
           210.24y.y.y         alias                             inter2
ALIASED
                   inter2       profile   sip:mod_sofia at 210.24y.y.y:5060
RUNNING (0)
                  default         alias
internal      ALIASED
                 ^^^^^^^^ does this affect dialplan routing ?

                 external       profile   sip:mod_sofia at 210.243.126.69:5080
RUNNING (0)
=================================================================================================
6 profiles 5 aliases


FYI: setting files

sip profiles use the default config , and modify the correspoding parameter
profile name , context , domain

root at localhost sip_profiles# ls -F
./ ../ external/ external.xml inter2.xml internal/ internal.xml nat/
nat2.xml nat.xml

<!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
<profile name="inter2" domain="210.24x.x.x">
 <!--aliases are other names that will work as a valid profile name for this
profile-->
 <aliases>
   <alias name="210.24x.x.x"/>
   <alias name="inter2"/>
 </aliases>


root at localhost dialplan# ls -F
./ default.xml default.xml.old extensions/ inter2.xml
../ default.xml.simpl-test features.xml public.xml

I also duplicate another pub2.xml for dialplan routing.

freeswitch at localhost> sofia_contact 1526 at 210.24x.x.x
API CALL sofia_contact(1526 at 210.24x.x.x) output:
sofia/inter2/1526 at 59.124.94.250:2342

freeswitch at localhost>
freeswitch at localhost> 2008-08-12 13:31:58 NOTICE switch_channel.c:533
switch_channel_set_name() New Channel
sofia/inter2/1526 at 210.243.126.729b9ae75d-142d-4931-956f-c6624c2d61d6
2008-08-12 13:31:58 INFO mod_dialplan_xml.c:222 dialplan_hunt() Processing
1526->1527 at default
                                                                   ^^^^^^
why always go to "default" context , not the "inter2" ?

2008-08-12 13:31:58 WARNING switch_ivr_originate.c:539
switch_ivr_originate() No origination URL specified!

Please someone kindly advise !!

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080812/771814a3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list